package jwr.basic;

import java.util.Scanner;

public class P111_Ex04 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int input;
		int MOK;
		int NMG;
		String msg1;
		String msg2;
		
		System.out.println("수를 입력해주세요.");
		
		msg1 = "박수짝";
		msg2 = "박수짝짝";
		input = sc.nextInt();
		sc.close();
		MOK = input/10;
		NMG = input%10;
		
//		System.out.println(MOK%3 + " ,"+ NMG%3);
		
		if(MOK%3==0 && NMG%3==0 && MOK!=0 && NMG!=0){
			System.out.println(msg2);
		}else if(MOK%3==0 && MOK!=0){
			System.out.println(msg1);
		}else if(NMG%3==0 && NMG!=0){
			System.out.println(msg1);
		}else{
			System.out.println(input);
		}
//		System.out.println(number1+" ,"+number2);
		
	}

}
